package com.jason.www.service.impl;

import com.jason.www.dao.RolesMapper;
import com.jason.www.domain.Permissions;
import com.jason.www.service.RolesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * Created by Cai on 2018/6/24.
 */
@Service
public class RolesServiceImpl implements RolesService {
    @Autowired
    RolesMapper rolesMapper;

    @Override
    public Set<Permissions> getPermissionsByRolesIds(Set<Long> rolesIdSet) {
        return rolesMapper.getPermissionsByRolesIds(rolesIdSet);
    }
}
